package com.zb.order.controller;

import com.zb.result.Result;
import com.zb.service.ZjWorkUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author WEN
 * @Date 2023/10/28 0028
 **/
@Api(tags = "工单客户类接口")
@RestController
@RequestMapping("/work/user")
public class ZjWorkUserController {
    @Resource
    private ZjWorkUserService workUserService;

    @ApiOperation("根据工单ID获取工单客户地址")
    @GetMapping("/getWorkUserAddress/{workId}")
    public Result getWorkUserAddress(@PathVariable @ApiParam(value = "工单ID", required = true) Long workId) {
        return Result.success("获取工单客户地址成功").data("row", workUserService.getWorkUserAddress(workId));
    }
}
